// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Core</Project>
// <FileName>AgentPoint.cs</FileName>
// <CreateTime>2017-05-16 14:03</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-05-16 14:03" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using Abp.Domain.Entities.Auditing;
using Vecen.BangChuang.BangChuang.Agents;

namespace Vecen.BangChuang.BangChuang.Wallets {

    /// <summary>
    /// 店长积分记录
    /// </summary>
    public class PointRecord: CreationAuditedEntity {

        /// <summary>
        /// 店长ID
        /// </summary>
        public int AgentId { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 本次操作积分
        /// </summary>
        public decimal Point { get; set; }

        /// <summary>
        /// 积分记录类型
        /// <see cref="PointRecordType"/>
        /// </summary>
        public string RecordType { get; set; }
        /// <summary>
        /// 对象ID
        /// </summary>
        public int ObjectId { get; set; }

        /// <summary>
        /// 本次操作之前剩余积分
        /// </summary>
        public decimal BeforePoint { get; set; }

        /// <summary>
        /// 本次操作之后剩余积分
        /// </summary>
        public decimal AfterPoint { get; set; }
    }
}